module.exports = {
    devServer: {
        open:true,
        port:8888,
        proxy:{
            '/proxy': {
                target: 'http://localhost:5000',
                ws: true,
                changeOrigin: true,
                pathRewrite: {
                    '^/proxy': '' 
                    //pathRewrite: {'^/api': '/'} 重写之后url为 http://192.168.1.16:8085/xxxx
                    //pathRewrite: {'^/api': '/api'} 重写之后url为 http://192.168.1.16:8085/api/xxxx
               }
              }
        }
       
    }
}